Optimal. Leaf size=42 \[ \frac {11}{8} \log \left (2 x^2-x+3\right )+\frac {5 x}{2}+\frac {33 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{4 \sqrt {23}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {1657, 634, 618, 204, 628} \[ \frac {11}{8} \log \left (2 x^2-x+3\right )+\frac {5 x}{2}+\frac {33 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{4 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1657
Rubi steps
\begin {align*} \int \frac {2+3 x+5 x^2}{3-x+2 x^2} \, dx &=\int \left (\frac {5}{2}-\frac {11 (1-x)}{2 \left (3-x+2 x^2\right )}\right ) \, dx\\ &=\frac {5 x}{2}-\frac {11}{2} \int \frac {1-x}{3-x+2 x^2} \, dx\\ &=\frac {5 x}{2}+\frac {11}{8} \int \frac {-1+4 x}{3-x+2 x^2} \, dx-\frac {33}{8} \int \frac {1}{3-x+2 x^2} \, dx\\ &=\frac {5 x}{2}+\frac {11}{8} \log \left (3-x+2 x^2\right )+\frac {33}{4} \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )\\ &=\frac {5 x}{2}+\frac {33 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{4 \sqrt {23}}+\frac {11}{8} \log \left (3-x+2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 42, normalized size = 1.00 \[ \frac {11}{8} \log \left (2 x^2-x+3\right )+\frac {5 x}{2}-\frac {33 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{4 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.86, size = 33, normalized size = 0.79 \[ -\frac {33}{92} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {5}{2} \, x + \frac {11}{8} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 33, normalized size = 0.79 \[ -\frac {33}{92} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {5}{2} \, x + \frac {11}{8} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 34, normalized size = 0.81 \[ \frac {5 x}{2}-\frac {33 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{92}+\frac {11 \ln \left (2 x^{2}-x +3\right )}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.95, size = 33, normalized size = 0.79 \[ -\frac {33}{92} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {5}{2} \, x + \frac {11}{8} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 35, normalized size = 0.83 \[ \frac {5\,x}{2}+\frac {11\,\ln \left (2\,x^2-x+3\right )}{8}-\frac {33\,\sqrt {23}\,\mathrm {atan}\left (\frac {4\,\sqrt {23}\,x}{23}-\frac {\sqrt {23}}{23}\right )}{92} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 46, normalized size = 1.10 \[ \frac {5 x}{2} + \frac {11 \log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{8} - \frac {33 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{92} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________